package com.example.smart_campus.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;

/**
 * <p>
 * 反馈表，存储学生的反馈信息
 * </p>
 *
 * @author liyv
 * @since 2024-10-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table("feedbacks")
public class Feedbacks implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 反馈ID，主键
     */
    @TableId(value = "feedback_id", type = IdType.AUTO)
    private Integer feedbackId;

    /**
     * 学生ID，外键
     */
    private Integer studentId;

    /**
     * 反馈内容
     */
    private String content;

    /**
     * 反馈类型
     */
    private String feedbackType;

    /**
     * 回复内容
     */
    private String response;


    @Override
    public String toString() {
        return "Feedbacks{" +
        "feedbackId=" + feedbackId +
        ", studentId=" + studentId +
        ", content=" + content +
        ", feedbackType=" + feedbackType +
        ", response=" + response +
        "}";
    }
}
